console.log("JavaScript".search(/script/)); // -1
console.log("JavaScript".search(/script/i)); // 4
console.log("JavaScript".search(/a/)); // 1
console.log("JavaScript".search(/a/g)); // 1

console.log("axpple".search("p{2,}")); // 2
console.log("axpple".search("p{3,}")); // -1
